home *** CD-ROM | disk | FTP | other *** search
- on progThis message, repeatNum, showButton, whichGUI
- global gStillProgging, progWin
- tell the stage
- gStillProgging = 1
- end tell
- tell the stage
- set the mouseDownScript to "dontPassEvent"
- end tell
- tell the stage
- set the mouseUpScript to "dontPassEvent"
- end tell
- if (message = EMPTY) or voidp(message) then
- message = "Progress..."
- end if
- if whichGUI = 2 then
- go("PLAIN")
- else
- if whichGUI = 1 then
- go("ZONE")
- end if
- end if
- set the width of sprite 22 to 0
- if not voidp(message) or not (message = EMPTY) then
- if the number of chars in message > 34 then
- repeat while the number of chars in message > 31
- delete char -30000 of message
- end repeat
- theLastChar = the number of chars in message
- put "..." after char theLastChar of message
- end if
- end if
- if not voidp(message) or not (message = EMPTY) then
- put message into field "Message"
- end if
- put repeatNum into field "repeatNum"
- tell the stage
- updateStage()
- end tell
- if showButton = 0 then
- repeat with i = 2 to 4
- set the visible of sprite i to 0
- updateStage()
- end repeat
- set the visible of sprite 3 to 0
- set the visible of sprite 7 to 0
- set the visible of sprite 8 to 1
- updateStage()
- x = 304
- y = 60
- tell the stage
- progWin.rect = getCenteredRect(x, y)
- end tell
- else
- repeat with i = 2 to 5
- set the visible of sprite i to 1
- updateStage()
- end repeat
- set the visible of sprite 3 to 0
- set the visible of sprite 7 to 1
- set the visible of sprite 8 to 0
- updateStage()
- x = 304
- y = 75
- tell the stage
- progWin.rect = getCenteredRect(x, y)
- end tell
- end if
- tell the stage
- open(progWin)
- end tell
- tell the stage
- return EMPTY
- end tell
- end
-
- on progressBar theLoop
- global progWin
- if the rollover = 4 then
- repeat while the mouseDown
- if rollover(4) then
- if the visible of sprite 3 = 0 then
- set the visible of sprite 3 to 1
- end if
- else
- if the visible of sprite 3 = 1 then
- set the visible of sprite 3 to 0
- end if
- end if
- updateStage()
- theButton = the rollover
- end repeat
- else
- if not (the rollover = 4) then
- if the mouseDown then
- beep()
- end if
- repeat while the mouseDown
- nothing()
- end repeat
- end if
- end if
- if theButton = 4 then
- tell the stage
- return "CANCEL"
- end tell
- end if
- updateStage()
- progBar(theLoop)
- tell the stage
- updateStage()
- end tell
- end
-